package com.dq.Week1.day02;

public class homeWord2Demo {
    public static void main(String[] args) {
        int i = 0;
        int j = 0;
        for(i=2;i<=1000;i++)
        {
             for(j=2;j<i;j++)
            {
                if(i%j==0)
                {
                    break;
                }
            }
             if(i==j)
             {
                 System.out.println(i);
             }
        }
    }
}
